package com.czz.manage.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassName: Category
 * @Author Czz
 * @Date 2019/12/29
 * @Time 9:52
 **/
@Data
@TableName(value = "edu_course_category")
@Accessors(chain = true)
public class Category {
    @TableId(value = "category_id", type = IdType.ID_WORKER_STR)
    private String id;

    @TableField(value = "category_name")
    private String name;

    @TableField(value = "category_parent_id")
    private String parentId;

    @TableField(value = "category_sort")
    private String sort;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
